/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lucava.metamodel.uspeed;

import java.util.ArrayList;
import lucava.metamodel.uspeed.visitor.IElementVisitor;

/**
 *
 * @author glenn
 */
public abstract class NamedElement {

    /**
     * Nom de lélément.
     */
    protected String name = null;
    /**
     * Commentaires associés à l'élément.
     */
    protected ArrayList<String> comments = new ArrayList<String>();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ArrayList<String> getComments() {
        return comments;
    }

    public void setComments(ArrayList<String> comments) {
        this.comments = comments;
    }

    public void addComment(String comment) {
        this.comments.add(comment);
    }

    public abstract void accept(IElementVisitor visitor);
}
